package com.gcit.seniorWish.web.modular.report.service.impl;

import com.gcit.seniorWish.web.common.persistence.model.SeniorStatisticsReport;
import com.gcit.seniorWish.web.common.persistence.dao.SeniorStatisticsReportMapper;
import com.gcit.seniorWish.web.modular.report.dao.SeniorStatisticsReportDao;
import com.gcit.seniorWish.web.modular.report.service.ISeniorStatisticsReportService;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

/**
 * <p>
 * 上报信息表 服务实现类
 * </p>
 *
 * @author tonglu
 * @since 2018-03-25
 */
@Service
public class SeniorStatisticsReportServiceImpl extends ServiceImpl<SeniorStatisticsReportMapper, SeniorStatisticsReport>
		implements ISeniorStatisticsReportService {

	@Resource
	SeniorStatisticsReportDao seniorStatisticsReportDao;

	@Override
	public List<Map<String, Object>> getStatistics(Pagination page, String seniorSchoolId, String seniorClassId) {
		return seniorStatisticsReportDao.getStatistics(page, seniorSchoolId, seniorClassId);
	}
	
	@Override
	public List<Map<String, Object>> getStatistics(String seniorSchoolId, String seniorClassId) {
		return seniorStatisticsReportDao.getStatistics(seniorSchoolId, seniorClassId);
	}

}
